<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><!--Head--><head>
    <meta charset="utf-8">
    <title>佳纳后台登录</title>
    <meta name="description" content="login page">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
	 <link rel="stylesheet" href="/static/admin1/admin.ui/css/app.css" type="text/css"/>
    <link href="__STATIC__/admin/login/css/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/admin/login/css/font-awesome.css" rel="stylesheet">
    <!--Beyond styles-->
    <link id="beyond-link" href="__STATIC__/admin/login/css/beyond.css" rel="stylesheet">
    <link href="__STATIC__/admin/login/css/demo.css" rel="stylesheet">
    <link href="__STATIC__/admin/login/css/animate.css" rel="stylesheet">
</head>
<!--Head Ends-->
<!--Body-->

<body>
    <div class="login-container animated fadeInDown">
     
            <div class="loginbox bg-white">
                <div class="loginbox-title">秦岭云后台管理系统</div>
                <div class="loginbox-textbox">
                    <input id="username" class="form-control" placeholder="账号" name="admin_username" type="text">
                </div>
                <div class="loginbox-textbox">
                    <input id="password" class="form-control" placeholder="密码" name="admin_password" type="password">
                </div>
				 <div class="loginbox-textbox" >
                  <input id="verify"  class="form-control" placeholder="验证码" name="code" type="text" >
				   <img id="amverify" src="{:captcha_src()}" alt="captcha" onclick="this.src=this.src+'?'+Math.random()"/>
                </div>
				
                <div class="loginbox-submit">
                    <input class="btn btn-primary btn-block" value="请登录" type="button" onclick="show();">
					
                </div>
            </div>
                <div class="logobox">
                    <p class="text-center">秦岭云电子科技有限公司</p>
                </div>
    </div>
    <!--Basic Scripts-->
<script src="/static/admin1/admin.ui/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="/static/admin1/admin.ui/js/bootstrap.js"></script>
<!-- App -->
<script src="/static/admin1/admin.ui/js/app.js"></script>
<script src="/static/admin1/admin.ui/js/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/admin1/admin.ui/js/app.plugin.js"></script>
<script src="/static/admin1/dialog/dialog/layer.js"></script>
<script src="/static/admin1/dialog/dialog.js"></script>
    <!--Beyond Scripts-->
<script>
 function show(){
var username=$("#username").val();
var password=$("#password").val();
var yzcode=$("#verify").val();
var admin_url="{:url('admin/index/index')}";

if(username.length<2){
dialog.error("用户名不能为空！");
}else if(password.length<1){
dialog.error("密码不能为空！");
}
else if(yzcode.length<1){
dialog.error("验证码不能为空！");
}
else{
$.post('{:url("admin/login/check")}',{'admin_username':username,'admin_password':password,'code':yzcode},function(data){
if(data.status==0){
dialog.error(data.message);
}else if(data.status==1){
dialog.success(data.message,admin_url);
}
},'JSON');
}
}
</script>




</body>
</html>